package com.ksd.modules.aliplayer.controller;

import com.aliyun.vod20170321.models.GetPlayInfoResponseBody;
import com.ksd.common.controller.BaseController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AliplayerController extends BaseController {

    @PostMapping("/aliplayer/parse")
    public GetPlayInfoResponseBody testGetVideo(@RequestParam("vid") String vid) {
        return GetVideoPlayAuth.parseVid(vid);
    }
}
